package com.ys.homework;

/**
 * @author CodeYang
 * @Description TODO
 * @Date 2020/12/14 20:02
 */
public class NetWorkUser {

    String ID;
    String password;
    String email;

    public NetWorkUser() {
    }

    public NetWorkUser(String ID, String password, String email) {
        this.ID = ID;
        this.password = password;
        this.email = email;
    }
    // 其中用户 ID 和用户密码时必须缺省时 email地址是用户 ID 加上字符串"@gameschool.com"。
    public NetWorkUser(String ID, String password) {
        this.ID = ID;
        this.password = password;
        this.email =ID+"@gameschool.com";
    }

    void show(){
        System.out.println("ID = " + ID);
        System.out.println("password = " + password);
        System.out.println("email = " + email);
    }
}
